<template>
  <div>
    <!-- 头部区域 (申请会诊按钮) -->
    <div class="hader">
        <img src="https://s1.ax1x.com/2022/10/24/x2df3t.png" alt="" class="rest" @click="resut">
      <h6>会诊</h6>
      <a @click="tation">
        <img src="https://s1.ax1x.com/2022/10/14/xdHakD.png" alt="" />
        &nbsp;&nbsp;
        <span>申请会诊</span>
      </a>
    </div>
    <!-- 会诊列表区域 -->
    <div class="section">
      <div class="article">
        <van-row type="flex" justify="center" class="articletheme">
          <van-col span="7" class="theme">会诊列表</van-col>
          <van-col span="0" class="search" offset="9">
            <img
              src="https://s1.ax1x.com/2022/10/14/xdxpGT.png"
              alt=""
              @click="search"
            />
          </van-col>
          <van-col span="2" offset="3">
            <img src="https://s1.ax1x.com/2022/10/14/xdx9RU.png" alt="" />
          </van-col>
        </van-row>
      </div>
      <ul class="List">
        <li>
          <van-row type="flex" justify="center" class="articleList">
            <van-col span="5" class="backList">
              <span>待接诊</span>
            </van-col>
            <van-col span="14" class="personnel">
              <h6>王慧芳 10岁 女</h6>
              <span>To：小儿心内科</span>
            </van-col>
            <van-col span="4" class="Listtitem">今天 9:00</van-col>
          </van-row>
        </li>
        <li>
          <van-row type="flex" justify="center" class="articleList">
            <van-col span="5" class="backList">
              <span>待接诊</span>
            </van-col>
            <van-col span="14" class="personnel">
              <h6>王慧芳 10岁 女</h6>
              <span>To：小儿心内科</span>
            </van-col>
            <van-col span="4" class="Listtitem">今天 9:00</van-col>
          </van-row>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "consultation",
  data() {
    return {
      alue1: 0,
      value2: "a",
      option1: [
        { text: "全部商品", value: 0 },
        { text: "新款商品", value: 1 },
        { text: "活动商品", value: 2 },
      ],
      option2: [
        { text: "默认排序", value: "a" },
        { text: "好评排序", value: "b" },
        { text: "销量排序", value: "c" },
      ],
    };
  },
  methods: {
    // 通过编程式路由导航跳转到搜索页
    search() {
      this.$router.push({
        path: "/search",
      });
    },
    tation() {
      this.$router.push({
        path: "/tation",
      });
    },
    resut(){
        this.$router.back();
      }
  },
};
</script>

<style lang="less" scoped>
.hader {
  height: 10.625rem;
  background: #199ed8;
  overflow: hidden;
  .rest{
        width: 26px;
        height: 26px;
        position: absolute;
        top: 32px;
        left: 30px;
    }
  h6 {
    margin-top: 2.1875rem;
    text-align: center;
    color: #fff;
    background: #199ed8;
    font-weight: 100;
    font-size: 1.0625rem;
  }
  a {
    display: inline-block;
    width: 15rem;
    height: 3.125rem;
    border-radius: 3.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    margin-left: 4.375rem;
    margin-top: 2.3125rem;
    background: #ffffff;
    img {
      width: 1.75rem;
      height: 1.875rem;
    }
    span {
      color: #199ed8;
    }
  }
}
.article {
  border-bottom: 0.0625rem #ccc solid;
  .articletheme {
    height: 1.25rem;
    padding: 0.375rem;

    .theme {
      font-size: 0.8125rem;
      color: #199ed8;
    }
  }
}
.articleList {
  padding: 0.625rem;
  height: 2.5rem;
  border-bottom: 1px solid #ccc;
}
.backList {
  background-image: url("https://s1.ax1x.com/2022/10/14/xdxCzF.png");
  background-repeat: no-repeat;
  background-position: 0.625rem 0;
  span {
    font-size: 0.625rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0);
    position: relative;
    top: 0.625rem;
    left: 0.6875rem;
  }
}
.List {
  .personnel {
    h6 {
      margin-bottom: 0.3125rem;
    }
    span {
      font-size: 0.8125rem;
      color: #999999;
    }
  }
  .Listtitem {
    font-size: 0.625rem;
  }
}
</style>